package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


/**
 * @desc BffTargetCycleTargeValuetDto
 * @使用场景
 */
@Data
public class BffTargetCycleTargeValuetDto implements Serializable {

    /**
     * 被评对象目标周期ID
     */
    @NotNull(message = "被评对象目标周期ID不能为空")
    @ApiModelProperty("被评对象目标周期ID")
    private String evaObjTargetCycleId;

    /**
     * 被评对象目标设置ID
     */
    @NotNull(message = "被评对象目标设置ID不能为空")
    @ApiModelProperty("被评对象目标设置ID")
    private String evaObjOsetId;

    /**
     * 目标周期规划设置ID
     */
    @NotNull(message = "目标周期规划设置ID不能为空")
    @ApiModelProperty("目标周期规划设置ID")
    private String targetCyclePlanSetId;

    /**
     * 起始值
     */
    @ApiModelProperty("起始值")
    private Double targetStartValue;

    /**
     * 诊断值
     */
    @ApiModelProperty("诊断值")
    private Double targetDiagnosticValue;

    /**
     * 目标值
     */
    @ApiModelProperty("目标值")
    private Double targetValue;

    /**
     * 计划验收时间
     */
    @ApiModelProperty("计划验收时间")
    private Date acceptancePlanTime;

    /**
     * 目标周期简称
     */
    @ApiModelProperty("目标周期简称")
    private String cyclelAlias;
    /**
     * 是否父周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否父周期")
    private String isParentCycle;

    /**
     * 是否子周期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否子周期")
    private String isSubCycle;

    /**
     * 是否中期 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否中期")
    private String isMetaphase;
    /**
     * 周期排序
     */
    @NotNull(message = "周期排序不能为空")
    @ApiModelProperty("周期排序")
    private Long orderNumber;
    /**
     * 目标周期名称
     */
    @ApiModelProperty("目标周期名称")
    private String targetCycleName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffTargetCycleTargeValuetDto that = (BffTargetCycleTargeValuetDto) o;
        return evaObjTargetCycleId == that.evaObjTargetCycleId && evaObjOsetId == that.evaObjOsetId && targetCyclePlanSetId == that.targetCyclePlanSetId && targetStartValue == that.targetStartValue && targetDiagnosticValue == that.targetDiagnosticValue && targetValue == that.targetValue && acceptancePlanTime == that.acceptancePlanTime && cyclelAlias == that.cyclelAlias && isParentCycle == that.isParentCycle && isSubCycle == that.isSubCycle && isMetaphase == that.isMetaphase && orderNumber == that.orderNumber && targetCycleName == that.targetCycleName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), evaObjTargetCycleId, evaObjOsetId, targetCyclePlanSetId, targetStartValue, targetDiagnosticValue, targetValue, acceptancePlanTime, cyclelAlias, isParentCycle, isSubCycle, isMetaphase, orderNumber, targetCycleName);
    }


}
   